{% load i18n %}
<div id="posts-secondary">
	
{% if recent_comics %}
<div id="recent-comics">
    <h3>{% trans "Latest Comics" %}</h3>
    <ul>
        {% for item in recent_comics %}
        <li>
        	<a href="/{{item.permalink}}/jump" title="{{item.date}}">{{item.title}}</a><br>
			<small>(<a href="/filter/book/{{item.book}}/sort/date/jump" title="Book: {{item.book}}">{{item.book}}</a> &gt; <a href="/filter/chapter/{{item.chapter}}/sort/date/jump" title="Chapter: {{item.chapter}}">{{item.chapter}}</a>)</small><br>
			<a href="/{{item.permalink}}/jump" title="{{item.date}}"><img src="/rpc/episodethumb/{{item.permalink}}" border="0" title="{{item.title}}"></a>
        </li>
        {% endfor %}
    </ul>
</div>
{% endif %}
	
{% if book_data %}
<div id="recent-books">
    <h3>{% trans "All Comic Books" %}</h3>
    <ul>
        {% for book in book_data %}
        <li>
        	{{book.title}}
			<ul>
				{% for chapter in book.chapters %}
				<li>
					{{chapter.title}}
					<ul>
						<li>
						<ul>
						<li>
						<a href="/{{chapter.first_url}}/jump" title="First episode in {{chapter.title}}. Originally published: {{chapter.first_date}}">first</a><br> 
						<a href="/{{chapter.first_url}}/jump" title="First episode in {{chapter.title}}. Originally published: {{chapter.first_date}}">							
						<img src="/rpc/episodethumb/{{chapter.first_url}}" border="0" title="{{item.title}}">
						</a> 
						</li>
						<li>
						<a href="/{{chapter.latest_url}}/jump" title="Latest episode in {{chapter.title}}. Originally published: {{chapter.latest_date}}">latest</a><br>
						<a href="/{{chapter.latest_url}}/jump" title="Latest episode in {{chapter.title}}. Originally published: {{chapter.latest_date}}">
						<img src="/rpc/episodethumb/{{chapter.latest_url}}" border="0" title="{{item.title}}">
						</a>
						</li>
						</ul>
						</li>
					</ul>
				</li>
				{% endfor %}
			</ul>

        </li>
        {% endfor %}
    </ul>
</div>
{% endif %}	

{% if twitter_data %}
<div id="recent-microblog">
    <h3>{% trans "Tweets" %}</h3>
    <ul>
        {% for item in twitter_data %}
        <li>
        	{{item.text}}
        </li>
        {% endfor %}
    </ul>
</div>
{% endif %}

{% if feed_data %}
<div id="recent-blog">
    <h3>{% trans "Related Feed" %}</h3>
	<div>A feed from a different site:</div>
    <ul>
        {% for item in feed_data %}
        <li>
        	<a href="{{item.link}}">{{item.title}}</a>
        </li>
        {% endfor %}
    </ul>
</div>
{% endif %}

</div>
